package com.party.core.service.commune;

import com.party.core.model.commune.CIntegralItem;
import com.party.core.model.commune.CIntegralType;
import com.party.core.model.commune.CUserIntegral;
import com.party.core.model.member.PartnerMember;

import java.util.List;

/**
 * @program: party
 * @description: 积分业务接口
 * @author: Hua Qunhao
 * @create: 2019-08-26 17:11
 **/
public interface ICIntegralBizService {

    List<String> batchAddIntegralAct(CUserIntegral cUserIntegral, String actPublisher);

    /**
     * @Description:获取机构的积分项
     * @Param:partnerId
     * @return:CIntegralItem
     * @Author: Hua Qunhao
     * @Date: 2019/10/30
     */
    CIntegralItem getSystemCIntegralItem(String partnerId,String integralItemId ,Integer integralType) throws Exception;

    /**
     * @Description:插入积分
     * @Param:a
     * @return:a
     * @Author: Hua Qunhao
     * @Date: 2019/10/31
     */
    void insertSystemCIntegralItem(String cmrId, String partnerId, PartnerMember partnerMember,String integralItemId ,Integer integralType) throws Exception;

    /**
     * @Description: 获取积分类型
     * @Param:
     * @return:
     * @Author: Hua Qunhao
     * @Date: 2019/11/6
     */
    CIntegralType getCIntegralType(String partnerId, Integer category);

    /**
     * @Description: 添加赠送积分
     * @Param:partnerId，memberId
     * @return:
     * @Author: Hua Qunhao
     * @Date: 2019/11/25
     */
    void addGiftIntegral(String partnerId, String memberId) throws Exception;
}